package com.button.controller;

import com.button.domain.bean.User;
import com.button.domain.vo.ResultData;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.UUID;

@Slf4j
@RequestMapping("/user")
@RestController
public class UserController {

    @ApiOperation(value = "用户登录测试接口", notes = "用户登录接口")
    @GetMapping("login")
    public ResultData login(@RequestParam String userName, @RequestParam String passWord){
        return ResultData.success(userName + "," + passWord);
    }

    @ApiOperation(value = "获取用户信息", notes = "获取用户信息")
    @PostMapping("userInfo")
    public ResultData<User> userInfo(@RequestBody User user){
        return ResultData.success(user);
    }
}
